<div class="wrapTb">
    <?php if ($products || $vouchers) { ?>
        <table class="viewshoppingbag" width="100%" cellspacing="0" cellpadding="0">
            <tr class="HeadTb">
                <td> &nbsp; </td>
                <td class="proNameDec"><span>Varenavn</span></td>
                <td class="proPrice"><span>Pr. stk</span></td>
                <td class="proNumber" colspan="2"><span>Antal</span></td>
                <td class="proPriceTT"> <span>Total</span></td>
            </tr>
            <tr class="space"><td colspan="6">&nbsp;</td></tr>
            <?php foreach ($products as $product) { ?>
                <tr class="eachRowPro">
                    <td class="proImg"><img src="<?php echo $product['thumb'] ?>" alt="<?php echo $product['name'] ?>" /></td>
                    <td class="proNameDec">
                        <h2 class="proName"><?php echo $product['name'] ?></h2>
                        <p class="proDec">
                            <?php
                            if($product['option'] && false){
                                $opt = '';
                                foreach ($product['option'] as $option) {
                                    $opt .= ', '.$option['name'].':'.$option['value'];
                                }
                                echo substr($opt, 1);

                            }
                            else {
                                echo $product['desc'];
                            }
                            ?>
                        </p>
                    </td>
                    <?php $id = str_replace(':', '_', $product['key']) ?>
                    <td class="proPrice"><span><?php echo $product['price'] ?></span></td>
                    <td class="proNumber"><input type="text" id="<?php echo $id ?>" class="inputNumber" name="quantity[]" value="<?php echo $product['quantity'] ?>" readonly disabled="disabled" /></td>
                    <td class="proStk">
                        <p class="wrapUpdown">
                            <img class="i-up" src="<?php echo $template ?>images/up.png" alt="" onclick="updateCart('<?php echo $product['key'] ?>', '<?php echo $id ?>', true, <?php echo $checkout_mode ?>)" />
                            <img class="i-down" src="<?php echo $template ?>images/down.png" alt="" onclick="updateCart('<?php echo $product['key'] ?>', '<?php echo $id ?>', false, <?php echo $checkout_mode ?>)" />
                        </p>
                        <span class="lable-stk">Stk</span>
                    </td>
                    <td class="proPriceTT">
                        <span class="PriceTT"><?php echo $product['total'] ?></span>
                        <span class="btDel" onclick="removeFromCart('<?php echo $product['key'] ?>', <?php echo $checkout_mode ?>)">x</span>
                    </td>
                </tr>
                <!--eachRowPro-->
            <?php } ?>
        </table>
        <div class="wrapTotalPrice">
            <span class="lbTotal">TOTAL</span> <span class="totalPrice"><?php echo $subtotal ?></span>
        </div>
        <a class="bnttoPayment" href="<?php echo $checkout ?>">GÅ TIL BETALING<span class="iconNext"></span></a>
    <?php } else { ?>
        <div><p style="font-size:14px; font-weight:bold;"><?php echo 'Din Indkøbskurv er tom.' //$text_empty; ?></p></div>
    <?php } ?>
</div>
<!--wrapTb-->
